<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            width: 700px;
            height: 200px;
            border: 1px solid #333;

            /* 设置为弹性盒子 */
            display: flex;

            /* 排列方向 */
            /* flex-direction: row; */
            /* 是否换行 */
            /* flex-wrap: wrap-reverse; */
            /* 简写 */
            flex-flow: column wrap;

            /* 水平对齐方式 */
            justify-content: space-evenly;

            /* 垂直对齐方式 */
            /* align-items: stretch; */

            /* 换行后的多行对齐方式 */
            /* align-content: space-evenly; */

        }

        .container div{
            width: 200px;
        }

        .d1{
            background-color: red;
            /* 伸缩比例，1表示占父元素空间的一份 */
            flex: 1;
            order: 1;
        }
        .d2{
            background-color: green;
            flex: 2;
            order: 3;
        }
        .d3{
            background-color: blue;
            flex: 1;
            order: 2;
        }
        .d4{
            background-color: pink;
        }
        .d5{
            background-color: cyan;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="d1">div1</div>
        <div class="d2">div2</div>
        <div class="d3">div3</div>
        <!-- <div class="d4">div4</div>
        <div class="d5">div5</div> -->
    </div>
</body>
</html>